package com.wbp.cms.client.constant;

public class CacheConstant
{
    
    /**
     * wangu web 缓存标识
     */
    public static final String WANGUWEB_CACHE_KEY = "wanguweb_";
    
    /**
     * 产品列表标识
     */
    public static final String PRODUCT_LIST = "productList_";
 
    /**
     * 产品列表 数据cache
     */
    public static final String PRODUCT_LIST_DATA_CACHE = WANGUWEB_CACHE_KEY + PRODUCT_LIST;
     
    /**
     * 单个产品的Key　+产品的ID 的数据缓存 整个单页面的Key用此常量表示， 
     */
    public static final String SINGLE_PRODUCT_CACHE = PRODUCT_LIST_DATA_CACHE + "singleProduct_";
    
    /**
     * 所有省的cache key　list<provinces>
     */
    public static final String PROVINCE_DATA_CACHE = WANGUWEB_CACHE_KEY + "wanguprovince";
  
    
    /**
     * 市的cache key Map<yggcitiy,Map<pid,city>>
     */
    public static final String CITY_DATA_CACHE = WANGUWEB_CACHE_KEY + "wangucitiy";
    
    /**
     * 区的cache key Map<yggdistrict,Map<cid,district>>
     */
    public static final String DISTRICT_DATA_CACHE = WANGUWEB_CACHE_KEY + "wangudistrict";
    
    
    /**
     * 微信的access_token有效期为7200秒
     */
    public static final String WEIXIN_ACCESS_TOKEN = WANGUWEB_CACHE_KEY + "access_token";
    
    /**
     * 微信的jsapi_ticket 有效期为7200秒
     */
    public static final String WEIXIN_JSAPI_TICKET = WANGUWEB_CACHE_KEY + "jsapi_ticket";
    
    /**
     * 缓存30秒
     */
    public static final int CACHE_SECOND_30 = 30;
    
    /**
     * 缓存一分钟
     */
    public static final int CACHE_MINUTE_1 = 60;
    
    /**
     * 缓存十分钟
     */
    public static final int CACHE_MINUTE_10 = 60 * 10;
    
    /**
     * 缓存一小时
     */
    public static final int CACHE_HOUR_1 = 60 * 60;
    
    /**
     * 缓存一天
     */
    public static final int CACHE_DAY_1 = 24 * 60 * 60;
    
    /**
     * 缓存七天
     */
    public static final int CACHE_DAY_7 = 24 * 60 * 60 * 7;
    
    /**
     * 平台缓存标识
     */
    public static final String COMMON_CACHE_KEY = "common_";
    
    public static final String STATIC_CSS_VERSION_CACHE_KEY = WANGUWEB_CACHE_KEY + "staticCssVersion";
    
    public static final String STATIC_JS_VERSION_CACHE_KEY = WANGUWEB_CACHE_KEY + "staticJSVersion";
    
}
